package com.pactera.madp.cp.api.entity.workroom;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * WorkContactEmployeeStatisticsEntity
 *
 * @author jun
 * @version 1.0
 * 2021/7/19 17:18
 **/
@Data
@TableName("cp_work_contact_employee_statistics")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "客户统计表-按员工")
public class WorkContactEmployeeStatisticsEntity extends BaseEntity<WorkContactEmployeeStatisticsEntity> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "员工id")
    private Integer employeeId;

    @ApiModelProperty(value = "总客户数")
    private Integer totalContact;

    @ApiModelProperty(value = "净增客户数")
    private Integer realAddContact;

    @ApiModelProperty(value = "新增客户数")
    private Integer newAddContact;

    @ApiModelProperty(value = "流失客户数")
    private Integer lossContact;

    @ApiModelProperty(value = "CRM客户数")
    private Integer crmContact;

    @ApiModelProperty(value = "去重客户数")
    private Integer distinctContact;

    /**
     * 行外客户数 = 去重客户数 - CRM客户数
     */
    @ApiModelProperty(value = "行外客户数")
    private Integer nonBankContact;

    @ApiModelProperty(value = "企业id")
    private Integer corpId;

}
